package gptma.bo.dao;

import gptma.bo.dao.querier.CriterionSet;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

public interface GenericDao<T, K extends Serializable> {

	T save(T newInstance);

	void save(Collection<T> instances);

	void delete(T instance);

	T findById(K primaryKey);

	List<T> findAll();

	List<T> findByCriteria(CriterionSet criterionSet);
}
